package com.ChengXiZi.dto;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 审核日志表分页查询DTO
 *
 * @author ChengX
 * @since 2025-04-21 10:27:12
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AuditLogs分页查询对象", description = "审核日志表分页查询DTO")
public class AuditLogsPageDTO implements Serializable {

    //页数
    private int page;

    //页大小
    private int pageSize;

    //管理员姓名
    private Integer adminId;

    //操作类型
    private Integer type;

    //起时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    //止时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
